<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        function Person(name, age) {
            this.name = name
            this.age = age
            this.eat = function() {
                console.log(123);

            }
        }
        var per = new Person('冯志伦', 24)
        console.dir(Person)

        console.dir(per.__proto__)
        console.log(per.__proto__ == Person.prototype);
        console.log(per.__proto__.__proto__ == Person.prototype.__proto__);
        console.log(per.__proto__.__proto__.__proto__ == Object.prototype.__proto__);
        console.log(per.__proto__.__proto__ == Object.prototype);
        // 只要有构造函数就有，__proto__对象。
    </script>
</body>

</html>